package com.wangxiang.shop.member.dao;

import com.wangxiang.shop.member.entity.MemberEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * 
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-04 21:34:29
 */
@Mapper
public interface MemberDao extends BaseMapper<MemberEntity> {
	MemberEntity wxLogin(String openId);
	MemberEntity getMemberByLoginNmae(String loginNmae);
	int updateBalance(int userId , double price);
	MemberEntity selectByName(String name);

	int updateStatus(int id , int status,String remark);

	int getSexCount(int sex);
	int updatetest(MemberEntity m);

	int ageCount(int start , int end);

	int updateLocation(int userId ,int locationCode);

	int getLocationCountByIndex(int locationCode);

	int updateAge(int userId ,int age);

	int updateSex(int userIdd , int sex);

	void updateLine(int userId , int lineStatus);

	void updateOutLine();
}
